package SoftwareConstruction;

import java.util.*;

public class Test05 {
    public static void main(String[] args) {
        Set<String> a = new HashSet<>();
        String s = new String("xyz");
        a.add(s);
        s = s.substring(0, 1);
        final Set<String> b = a;
        b.add("xyz");
        System.out.println(a.size() + " " + b.contains("x"));

    }
}
